<?php

namespace App\Models\Shop;

use App\Models\BaseModel;

class ShopFile extends BaseModel
{


    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [

    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [
        'created_at','updated_at'
    ];

    protected $dateFormat = 'U';

    /**
     * 根据shop_id获取商家文件
     * @param $shop_id
     * @return mixed
     */
    public function getFilesById($shop_id){
        $data = $this::where('shop_id', $shop_id)
            ->get()
            ->toArray();
        return $data;
    }

}
